import vue from '@vitejs/plugin-vue'

export default {
  plugins: [vue()],
  server: {
    port: 1025,
    open: true,
    // hmr: { overlay: true },
    proxy: {
      '/api': {
        target: 'http://localhost:8080/',
        changeOrigin: true,
        rewrite: path => path.replace(/^\/api/, '')
      }
    }
  },
}
